package com.ball.dev.controller;


import com.ball.common.dtos.ResponseResult;
import com.ball.dev.entity.po.Options;
import com.ball.dev.service.IOptionService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**

 * 选项表
 * </p>
 *
 * @author lou
 * @since 2024-04-15
 */
@RestController
@RequestMapping("/option")
@RequiredArgsConstructor
public class OptionController {
    private final IOptionService optionService;

    @PostMapping("/add")
    public ResponseResult addOption(@RequestBody Options option){
        return optionService.addOption(option);
    }


}
